
package com.hlkj.pay.app.merchant.ext.impl;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import org.springframework.stereotype.Repository;

import com.hlkj.framework.extension.annotation.Extension;
import com.hlkj.pay.app.merchant.ext.MerchantExtConstant;
import com.hlkj.pay.app.merchant.ext.SystemMerchantAccessStatusExtPt;
import com.hlkj.pay.app.merchant.ext.dto.access.SystemMerchantAccessStatusContext;
import com.hlkj.pay.enums.MerchantEnum;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @author HlpayTeam
 * @date 2024/09/26 10:25
 */
@Slf4j
@Repository
@RequiredArgsConstructor
@Extension(bizId = MerchantExtConstant.ACCESS_STATUS_SYSTEM_APPROVE)
public class SystemApproveMerchantAccessExtPt implements SystemMerchantAccessStatusExtPt {

   

    @Override
    public void merchantAccessStatusProcess(SystemMerchantAccessStatusContext systemMerchantAccessStatusContext) {
        // 先自动通过 系统审核通过之后就是 渠道审核 即提交渠道
        systemMerchantAccessStatusContext.setAccessStatus(MerchantEnum.ACCESS_STATUS.CHANNEL_WAIT_APPROVE);
        // 处理成功
        // systemMerchantAccessStatusContext.setProcessStatus(CommonEnum.YES_NO_TYPE.YES);
       
    }
}
